import json

def generate_test_cases():
    test_cases = [
        {"numRows": 0, "expected": []},               # 边界情况：0行
        {"numRows": 1, "expected": [[1]]},            # 边界情况：1行
        {"numRows": 5, "expected": [                   # 常规情况：5行
            [1],
            [1, 1],
            [1, 2, 1],
            [1, 3, 3, 1],
            [1, 4, 6, 4, 1]
        ]},
        {"numRows": 7, "expected": [                  # 扩展情况：7行
            [1],
            [1, 1],
            [1, 2, 1],
            [1, 3, 3, 1],
            [1, 4, 6, 4, 1],
            [1, 5, 10, 10, 5, 1],
            [1, 6, 15, 20, 15, 6, 1]
        ]}
    ]
    with open('test_cases.json', 'w') as f:
        json.dump(test_cases, f, indent=2)

if __name__ == "__main__":
    generate_test_cases()